<?php
$return['nogohome']=1;
$return['plugin_icon']=$return['pluginset']['logo'];
$user=pdo_get('jy_baobiao_project_cuser',array('uniacid'=>$_SESSION['uniacid'],'id'=>$_SESSION['user_id']));
if(!$user['id']){
	if(!$_SESSION['uid']){
		if($_RQ['action']!='gongsi.login' && $_RQ['action']!='gongsi.register'){
			exi('','','/gongsi.login/');
		}
	}else{
		if($_RQ['action']!='gongsi.login' && $_RQ['action']!='gongsi.register'){
			exi('','','/gongsi.login/');
		}
		/*$member=model('core/member')->detail($_SESSION['uid'],array('credit1','credit2','mobile','groupid','avatar','nickname'));
		$data=array(
			'uniacid'=>$_SESSION['uniacid'],
			'mid'=>$_SESSION['uid'],
			'mobile'=>$member['mobile'],
			'name'=>$member['nickname'],
		);
		pdo_insert('jy_baobiao_project_cuser',$data);
		$this->user_id=pdo_insertid();*/
	}
}else{
	$this->user_id=$user['id'];
}